package com.city.service.report.impl;

import com.city.domain.pub.PubUser;
import com.city.repository.auth.PubAuthRepository;
import com.city.repository.pub.PubUserRepository;
import com.city.service.report.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthServiceImpl implements AuthService {

    @Autowired
    private PubUserRepository userR;
    @Autowired
    private PubAuthRepository authR;

    @Override
    public PubUser findUserById(Integer id) {
        return userR.findById(id);
    }

    @Override
    public PubUser findUserByLoginTel(String loginTel) {
        return userR.findByLoginTel(loginTel);
    }

    @Override
    public String findValueByUserId(String userId) {
        return authR.findValueByUserId(userId);
    }
}
